import request from '@/utils/request'
import qs from 'qs'

export function fetchUser() {
  return request({
    url: '/percenter',
    method: 'get'
  })
}

export function updateUser(data) {
  return request({
    url: '/percenter',
    method: 'put',
    data: qs.stringify(data)
  })
}

export function changePassword(data) {
  return request({
    url: '/newpassword',
    method: 'put',
    data: qs.stringify(data)
  })
}

